package com.mask.im.server.netty.action.handler;

import com.mask.im.server.netty.enums.IMActionEnum;
import com.mask.im.server.netty.model.IMReceiveMessage;
import io.netty.channel.Channel;

/**
 * @author jian
 */
public interface IMChatHandler {
    /**
     * 节点类型
     * @return
     */
    IMActionEnum getAction();

    /**
     *  具体操作实现
     * @param imReceiveMessage
     * @param channel
     */
    void handle(IMReceiveMessage imReceiveMessage, Channel channel);
}
